#include "send.h"

int main() {
    unsigned char data;
    if (SPIInit() == SPI_SETUP_SUCCESS) {
        printf("SPI Setup succeeded\n");
        while (true) {
            printf("Please enter SPI data:  ");
            scanf("%x", &data);
            unsigned char ret = send(data);
            printf("Data written.  Data received:  %x\n", ret);
        }
    }
    else {
        printf("SPI Setup failed!\n");
        return -1;
    }
}
